pub mod admin_api;
pub mod auth_api;
pub mod config;
mod core;
pub mod db;
mod err;
pub mod filter;
pub mod form;
pub mod handler;
pub mod hcaptcha;
pub mod jwt;
pub mod middleware;
pub mod model;
pub mod service;
mod state;
pub mod utils;
pub mod web_api;

pub use core::{short_url, short_url_with_seed};
pub use err::{Error, Kind as ErrorKind};
pub use state::AppState;

pub type Result<T> = std::result::Result<T, crate::Error>;
